package com.mc2014.follow_me_2014;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class WelcomeActivity extends Activity implements OnClickListener
{
	
	Button confirm_btn; 
	TextView terms;
	Intent intent;
	public void onCreate(Bundle savedInstanceState) 
	{
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_welcome);
	    
	    confirm_btn = (Button)findViewById(R.id.confirm_btn);
	    confirm_btn.setOnClickListener(this);
	    
	    terms = (TextView)findViewById(R.id.terms);
	    terms.setOnClickListener(this);
	    
	}
	
	public void onClick(View v)
	{
		if(v.getId() == R.id.confirm_btn)
		{
			intent = new Intent(WelcomeActivity.this, HomeActivity.class);
			startActivity(intent);
			finish();
		}
		else
		{
			intent = new Intent(WelcomeActivity.this, TermsActivity.class);
			startActivity(intent);
			
			
		}
	}

}
